package com.granada.behaviour.interfaces;

import com.granada.common.CurdExtraAddBatch;

import java.util.List;

public interface RolePermissionBehavior extends CurdExtraAddBatch {
    public List<Long> getPermissionIdsByRoles(List<Long> roleIds) throws Exception;
    public void removeByPermissionId(Long permissionId) throws Exception;
    public void removeByRoleId(Long roleId) throws Exception;
    public List<Long> getRoleIds(Long permissionId) throws Exception;
    public List<Long> getPermissionIdsByRoleId(Long roleId) throws Exception;
}
